import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
import Home from './components/tabBar/HomeContainer.vue'
import Member from './components/tabBar/MemberContainer.vue'
import Shopcar from './components/tabBar/ShopcarContainer.vue'
import Search from './components/tabBar/SearchContainer.vue'
import newslist from './components/news/NewsList.vue'
import NewsInfo from './components/news/NewsInfo.vue'
import photoList from './components/photos/photoList.vue'
import photoInfo from './components/photos/phontoInfo'
import goodList from './components/goods/goodsList'
import goodsInfo from './components/goods/goodsInfo'
import goodsDesc from './components/goods/goodsDesc'
import goodsComment from './components/goods/goodsComment'

export default new Router({
  routes: [
    {path:'/',redirect:'/home'},
    {path:'/home',component:Home},
    {path:'/member',component:Member},
    {path:'/shopcar',component:Shopcar},
    {path:'/search',component:Search},
    {path:'/home/newslist',component:newslist},
    {path:'/home/newsinfo/:id',component:NewsInfo},
    {path:'/home/photolist',component:photoList},
    {path:'/home/photoInfo:id',component:photoInfo},
    {path:'/home/goodslist',component:goodList},
    {path:'/home/goodsInfo:id',component:goodsInfo,name:'goodsInfo'},
    {path:'/home/goodsDesc:id',component:goodsDesc,name:'goodsDesc'},
    {path:'/home/goodsComment',component:goodsComment,name:'goodsComment'}
  ],
  linkActiveClass:'mui-active'
})
